(function () {
var searchHtml = `
 <ul class="layui-nav layui-bg-cyan">
  <li class="layui-nav-item"><a href="">车牌识别</a></li>
</ul>
`
var search = $('.head')
layui.use('element', function(){
  var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块

  //监听导航点击
  element.on('nav(demo)', function(elem){
    //console.log(elem)
    layer.msg(elem.text());
  });
});
search.html(searchHtml)
})()
